package org.wisigoth.chat.swing;

import org.wisigoth.chat.client.Session;
import org.wisigoth.chat.client.Wisigoth;
import org.wisigoth.chat.client.WisigothFactory;
/**
 * 
 * @author tof
 *
 */
public class WisigothMain {

	/**
	 * @param args
	 */
	public static void main(String args[]) {
		final Wisigoth wisigoth = WisigothFactory.createInstance();
		final Session session = wisigoth.createSession();
		final WisigothController controller = new WisigothController(session);
		final WisigothSystemTray systemTray = WisigothSystemTray.getInstance(session);
		systemTray.install();
		
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				controller.showLoginWindow();
			}
		});
	}

}
